package com.findFish.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.system.mapper.RobotFishStatusMapper;
import com.findFish.system.domain.RobotFishStatus;
import com.findFish.system.service.IRobotFishStatusService;

/**
 * 机器鱼状态Service业务层处理
 * 
 * @author admin
 * @date 2025-03-31
 */
@Service
public class RobotFishStatusServiceImpl implements IRobotFishStatusService 
{
    @Autowired
    private RobotFishStatusMapper robotFishStatusMapper;

    /**
     * 查询机器鱼状态
     * 
     * @param id 机器鱼状态主键
     * @return 机器鱼状态
     */
    @Override
    public RobotFishStatus selectRobotFishStatusById(Long id)
    {
        return robotFishStatusMapper.selectRobotFishStatusById(id);
    }

    /**
     * 查询机器鱼状态列表
     * 
     * @param robotFishStatus 机器鱼状态
     * @return 机器鱼状态
     */
    @Override
    public List<RobotFishStatus> selectRobotFishStatusList(RobotFishStatus robotFishStatus)
    {
        return robotFishStatusMapper.selectRobotFishStatusList(robotFishStatus);
    }

    /**
     * 新增机器鱼状态
     * 
     * @param robotFishStatus 机器鱼状态
     * @return 结果
     */
    @Override
    public int insertRobotFishStatus(RobotFishStatus robotFishStatus)
    {
        return robotFishStatusMapper.insertRobotFishStatus(robotFishStatus);
    }

    /**
     * 修改机器鱼状态
     * 
     * @param robotFishStatus 机器鱼状态
     * @return 结果
     */
    @Override
    public int updateRobotFishStatus(RobotFishStatus robotFishStatus)
    {
        return robotFishStatusMapper.updateRobotFishStatus(robotFishStatus);
    }

    /**
     * 批量删除机器鱼状态
     * 
     * @param ids 需要删除的机器鱼状态主键
     * @return 结果
     */
    @Override
    public int deleteRobotFishStatusByIds(Long[] ids)
    {
        return robotFishStatusMapper.deleteRobotFishStatusByIds(ids);
    }

    /**
     * 删除机器鱼状态信息
     * 
     * @param id 机器鱼状态主键
     * @return 结果
     */
    @Override
    public int deleteRobotFishStatusById(Long id)
    {
        return robotFishStatusMapper.deleteRobotFishStatusById(id);
    }
}
